import base64
filePath = 'img/文件结构.png'
f = open(filePath, 'rb')
ls_f = base64.b64encode(f.read())
f.close()
print(ls_f)
with open('test.txt', 'w') as ff:
    ff.write(str(ls_f))
